package vooga.behaviors;

import vooga.entities.Entity;


public class SpinBehavior extends AbstractBehavior
{
    private double myAngularVelocity;

    /**
     * 
     * @param angularVelocity angular velocity in degrees per step
     */
    public SpinBehavior (double angularVelocity)
    {
    	myAngularVelocity = angularVelocity;
    }


    public void step (Entity target)
    {
        target.rotate(myAngularVelocity);
    }
}
